import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home'
import Todo from '@/components/todo'
import Detail from '@/components/detail'
import Comment from '@/components/comment'
import Actcenter from '@/components/actcenter'
import Utask from '@/components/utask'
import CheckArea from '@/components/checkarea'
import UtaskHistory from '@/components/utaskhistory'
import Recruiting from '@/components/recruiting'
import Ucourse from '@/components/ucourse'
import Uchange from '@/components/ubean/beanexchange'
import Ubean from '@/components/ubean/ubean'
import Udetail from '@/components/ubean/ubeandetail'
import Urule from '@/components/ubean/ubeanrule'
import UShareRule from '@/components/ubean/usharerule'
import AppDownload from '@/components/appDownload'
import appQX from '@/components/appQX'
import appActivitySep from '@/components/appActivitySep'
import appActivitySepJD from '@/components/appActivitySepJD'
import appShare from '@/components/appShare'
import appVip from '@/components/appVip'
import Agreement from '@/components/agreement'
import appOlineFriend from '@/components/appOlineFriend'
import appOlineAcvity from '@/components/appOlineAcvity'
import appStatistical from '@/components/appStatistical'
import appDownloadStatistical from '@/components/appDownloadStatistical'
import uUpdate from '@/components/uUpdate'
import taxiGoldRule from '@/components/taxiGoldRule'
import partner from '@/components/partner'
import appToWx from '@/components/appToWx'
import carpoolGroup from '@/components/carpoolGroup'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      meta: {
        title: 'U搭商户后台'
      }
    },
    {
      path: '/actcenter',
      name: 'Actcenter',
      component: Actcenter,
      meta: {
        title: '活动中心'
      }
    },
    {
      path: '/utask',
      name: 'Utask',
      component: Utask,
      meta: {
        title: '兑换任务'
      }
    },
    {
      path: '/utaskhistory',
      name: 'UtaskHistory',
      component: UtaskHistory,
      meta: {
        title: '历史任务'
      }
    },
    {
      path: '/todo/:token',
      name: 'Todo',
      component: Todo,
      meta: {
        title: 'U搭商户后台'
      }
    },
    {
      path: '/detail/:token/:orderNo',
      name: 'Detail',
      component: Detail,
      meta: {
        title: 'U搭商户后台'
      }
    },
    {
      path: '/comment/:score/:token',
      name: 'Comment',
      component: Comment,
      meta: {
        title: 'U搭商户后台'
      }
    },
      {
          path: '/checkarea',
          name: 'CheckArea',
          component: CheckArea,
          meta: {
              title: '全区行程'
          }
      },
      {
          path: '/recruiting',
          name: 'Recruiting',
          component: Recruiting,
          meta: {
              title: '招募U搭拼车体验官'
          }
      },
      {
          path: '/ucourse',
          name: 'Ucourse',
          component: Ucourse,
          meta: {
              title: '月度统计'
          }
      },
      {
          path: '/ubean',
          name: 'Ubean',
          component: Ubean,
          meta: {
              title: 'u豆'
          }
      },
      {
          path: '/uchange',
          name: 'Uchange',
          component: Uchange,
          meta: {
              title: '换优惠券'
          }
      },
      {
          path: '/udetail',
          name: 'Udetail',
          component: Udetail,
          meta: {
              title: 'u豆'
          }
      },
      {
          path: '/urule',
          name: 'Urule',
          component: Urule,
          meta: {
              title: 'u豆'
          }
      },
      {
          path: '/usharerule',
          name: 'UShareRule',
          component: UShareRule,
          meta:
          {
              title: 'u豆'
          }

      },  {
          path: '/appDownload',
              name: 'AppDownload',
              component: AppDownload,
              meta: {
              title: '下载APP'
          }
      }
      ,  {
          path: '/appShare',
          name: 'AppShare',
          component: appShare,
          meta: {
              title: '好友邀您一起来拼车'
          }
      },
      {
          path: '/appVip',
          name: 'appVip',
          component: appVip,
          meta: {
              title: 'App专享'
          }
      },
       {
          path: '/appOlineFriend',
          name: 'appOlineFriend',
          component: appOlineFriend,
          meta: {
              title: '什么是拼友'
          }
      },
      {
          path: '/appOlineAcvity',
          name: 'appOlineAcvity',
          component: appOlineAcvity,
          meta: {
              title: '百万补贴助力通勤拼车'
          }
      },  {
          path: '/appStatistical',
          name: 'appStatistical',
          component: appStatistical,
          meta: {
              title: 'app下载'
          }
      },
      {
          path: '/appDownloadStatistical',
          name: 'appDownloadStatistical',
          component: appDownloadStatistical,
          meta: {
              title: 'app下载'
          }
      },
      {
          path: '/uUpdate',
          name: 'uUpdate',
          component: uUpdate,
          meta: {
              title: '小U全新升级'
          }
      },
      {
          path: '/agreement',
          name: 'Agreement',
          component: Agreement,
          meta: {
              title: '用户协议'
          }
      },
      {
          path: '/appQX',
          name: 'appQX',
          component: appQX,
          meta: {
              title: '小U出行'
          }
      },
      {
          path: '/appActivitySep',
          name: 'appActivitySep',
          component: appActivitySep,
          meta: {
              title: '车主奖励天天领'
          }
      },
      {

          path: '/appActivitySepJD',
          name: 'appActivitySepJD',
          component: appActivitySepJD,
          meta: {
              title: '奖励金周周领'
          }
      },
      {

          path: '/partner',
          name: 'partner',
          component: partner,
          meta: {
              title: '成为合伙人'
          }
      },
      {

          path: '/taxiGoldRule',
          name: 'taxiGoldRule',
          component: taxiGoldRule,
          meta: {
              title: '拼车金使用规则'
          }
      },
      {

          path: '/appToWx',
          name: 'appToWx',
          component: appToWx,
          meta: {
              title: '小U出行'
          }
      },
      {

          path: '/carpoolGroup',
          name: 'carpoolGroup',
          component: carpoolGroup,
          meta: {
              title: '加拼车群'
          }
      }


  ]
})
